<%@page language="java"  pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta name="apple-mobile-web-app-status-bar-style" content="black" />
	<meta name="format-detection" content="telephone=no" />
    <title>约来约美 </title>
    <link rel="stylesheet" href="${static_host}style/jquery.mmenu-5.0.3.css" />
    <link rel="stylesheet" href="${static_host}style/hhframe-1.0.0.css" />
    <link rel="stylesheet" href="${static_host}style/homepage.css" />
</head>
<body>
  
  <div class="framepage homepage">
    
    <!-- header -->
    <div class="header">
      <a href="#set_city" class="pos-l hd-city">城市</a>
      <h1 class="hd-title">约来约美</h1>
      <a href="#set_chanel" class="pos-r">频道</a>
    </div>
    
    <!-- content -->
    <div class="wrapper">
    <div class="content">
      
      <div class="scroll">
        <div class="slide_01" id="slide_01">
        <s:iterator value="#request.brand">
          <div class="mod_01"><a href="${brand_url}"><img src="${brand_pic}" /></a></div>
          </s:iterator>

        </div>
        <div class="dotModule_new">
          <div id="slide_01_dot"></div>
        </div>
      </div>
      
      <div class="hpmenu">
        <ul>
        <li><div><a href="store.do"><img src="icons/hpmenu01.png" /><p>商户</p></a></div></li>
        <li><div><a href="store!services.do"><img src="icons/hpmenu02.png" /><p>服务项目</p></a></div></li>
        <li><div><a href="index!sale.do"><img src="icons/hpmenu03.png" /><p>优惠活动</p></a></div></li>
        <li><div><a href="index!contact.do"><img src="icons/hpmenu04.png" /><p>联系我们</p></a></div></li>
        </ul>
      </div>
    
    </div>
    </div>
    
    <!-- footer -->
     <jsp:include page="/inc/indexfooter.jsp" />
    
    <!-- set city -->
    <div id="set_city">
      <div>
      <div class="header">
        <a href="javascript:;" class="pos-l icon hd-return">返回</a>
        <h1 class="hd-title">选择城市</h1>
      </div>
      
      <p class="tips">已开通服务的城市：</p>
      
      <div class="citys">
      <ul>
         <s:iterator value="#request.are">
      <li value='${area_id}'><a href="javascript:setcity('${area_id}-${area_name}')">${area_name}</a></li>
	</s:iterator>
      </ul>
      </div>
      
      </div>	
    </div>
    
    <!-- set chanel -->
    <div id="set_chanel">
      <div>
      
      <div class="header">
        <a href="javascript:;" class="pos-l icon hd-return">返回</a>
        <h1 class="hd-title">选择频道</h1>
      </div>
     <div class="chanels">
<s:iterator value="#request.sclass"   status="i"> 
	<p class="cate ${i.index==0?'hot':'liren'}">${storeclass.class_name}</p>
	 <s:iterator value="list"  var="c"  status="s">
	 <s:if test="#s.first">
	  <ul>
	 </s:if>
      <li><a href="javascript:classquery('${c.class_id}','${c.class_name}')">${c.class_name}</a></li>
      	 <s:if test="#s.last">
	  </ul>
	 </s:if>
      </s:iterator>
     </s:iterator>
      </div>
      
      </div>
    </div>
  
  </div>
  
<script src="http://apps.bdimg.com/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="${static_host}script/jquery.mmenu-5.0.3.js"></script>
    <script src="${static_host}script/jquery.iscroll.5.js"></script>
    <script src="${static_host}script/jquery.scroll.js"></script>
    <script src="${static_host}script/hhframe-1.0.0.js"></script>
    <script src="${static_host}script/homepage.js"></script>
    <script src="${static_host}script/public.js"></script>

<script type="text/javascript">
	function setcity(text){
		$.cookie('city', text, {expires : 365});
		window.location.href="store.do";
  }
//分类查询
 function classquery(classid,names){
    	tools.set("classid",classid);
    	tools.set("classname",names);
		window.location.href="store.do?s.sorttype=asc&s.orderby=km&s.class_id="+classid;
    	
}


</script>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> 
<script type="text/javascript" src="/js/wx/getpoint.js?a=3322"></script> 
</body>
</html>